package com.xiaoxie.cloud.controller;

import cn.hutool.core.util.IdUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayMicrometerController {

    /**
     * Micrometer(Sleuth)进行链路监控
     */
    @GetMapping("/pay/micrometer/{id}")
    public String myMicrometer(@PathVariable("id") Integer id) {
        return "Hello,欢迎到来 myMicrometer inputId: " + id + "\t" + IdUtil.simpleUUID();
    }
}
